Câu ví dụ
- thêm câu ví dụ: 1 2 3 4 5 6 7 8 9 10
- Non derived class with in the Same PACKAGE
Không phải lớp con (non-Subclasses) trong cùng một gói package - The public and the protected members are inherited by the Derived class.
Member public và protected được kế thừa bởi class Derived. - must be a derived class of the Exception class.
nhưng phải là một lớp dẫn xuất của lớp Exception - It redefine the methods for the derived class.
Định nghĩa lại các phương thức ở lớp dẫn xuất - These classes are called derived class.
Lớp mới gọi là lớp dẫn xuất (derived class).